package com.waves.pay.dao;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.waves.pay.domain.entity.Orders;
import com.waves.pay.mapper.OrderMapper;
import com.waves.pay.service.OrderService;
import org.springframework.stereotype.Service;

@Service
public class OrderDao extends ServiceImpl<OrderMapper, Orders> {
    public Orders get(String outTradeNo) {
        return lambdaQuery().eq(Orders::getOutTradeNo, outTradeNo).one();
    }
}
